package org.lib.mongodbhello.try1.entity;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.Data;

/**
 * 测试实体类对象存入MongoDB
 * @author ben
 * @date 2021-08-25 16:04:57 CST
 */
//@Document // 非必须
@Data
public class User1 {

//	@Id // 非必须
	private String id;
	
	private String name;
	private Integer age;
	private Date createTime;
	private Date updateTime;
	
}
